/* 兼容IE ------ start------**/ 
// import "core-js/stable"
// import 'regenerator-runtime/runtime'
/* 兼容IE ------ end--------**/
import Vue from 'vue'
import App from './app.vue'
import router from './router/index.js'
import store from './store'
import '@/components/vdirective'
import './utils/rem.js'
import bus from "vue-bus";
// import '../node_modules/swiper/swiper.min.css';
import '@/assets/icons'
import '@/permission' // permission control
import '@/components/index.js'

import '@/styles/index.less' // global css
import '@/styles/common.scss' // global css
import '@/styles/element-ui.less' // global css

import "@/assets/iconfont/iconfont.css";
import "@/assets/iconfont/iconfont.js";

// import EditOrDetail from '@/components/bkForm/editOrDetail.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css' 

// const moment = require("moment");


import { limitInt, pxtorem, getImageUrl } from '@/utils/tools'
import Transfer from 'bk-element'
import BkTable from 'bk-element'
import SearchForm from 'bk-element'

import 'bk-element/dist/bk-element.css'

// Vue.component('EditOrDetail', EditOrDetail)

Vue.use(Transfer)
.use(BkTable)
.use(SearchForm)

Vue.use(ElementUI, {size: 'small', zIndex: 3000})
Vue.use(bus);


Vue.prototype.$pxtorem = pxtorem // 放到全局
Vue.prototype.$limitInt = limitInt // 放到全局
Vue.prototype.$getImageUrl = getImageUrl // 放到全局
 
// Vue.prototype.$moment = moment

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
